// pages/orders/detail.js
var app = getApp(),
  a = app.requirejs("core");
Page({
  onLoad: function (options) {
   this.oid = options.oid;
    this.showDataInfo()
  },
  onShow:function(){
    
  },
  showDataInfo:function(){
    var self = this;
    a.get('Pintuan/ptOrderDetail', {
      id: this.oid
    }, function (t) {
      if(t.code==0){
        self.setData({
          orderInfo: t.info
        })
      }else{
        a.alert(t.msg);
      } 
    })
    
  }
 
})